﻿<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title - 智能题目系统</title>
    <script src="~/layui/layui.js"></script>
    <link type="text/css" rel="stylesheet" href="~/layui/css/layui.css" />
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
    <script src="~/Scripts/jquery-3.4.1.min.js"></script>
    <script src="~/Scripts/jquery.unobtrusive-ajax.js"></script>
    @*<script src="~/Scripts/jquery-1.10.2.js"></script>*@
    <link type="text/css" rel="stylesheet" href="~/Content/layoutCss.css"/>
    
</head>
<body class="layui-bg-gray" >
    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <img src="~/img/logo.png" alt="logo" style="width: 50px;height: 50px" class="pull-left" />
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>

                @Html.ActionLink("智能题库系统", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })
            </div>
            <div class="navbar-collapse collapse">

                <ul class="nav navbar-nav">
                    <li>@Html.ActionLink("主页", "Index", "Home")</li>
                    <li class="dropdown">
                        <a class=" dropdown-toggle" data-toggle="dropdown" href="#">功能菜单<b class="caret"></b></a>
                        <ul class="dropdown-menu">

                            @if (User.IsInRole("teachers") || User.IsInRole("admin"))
                            {
                                <li>@Html.ActionLink("Word导入", "Index", "WordImport")</li>
                                <li>@Html.ActionLink("课程中心(教师)", "Index", "Curricula")</li>
                            }

                            @if (User.IsInRole("students"))
                            {
                                <li>@Html.ActionLink("课程中心(学生)", "StuIndex", "Curricula")</li>
                            }
                        </ul>
                    </li>
                    @*<li><a href="#">N/A</a></li>
                    <li><a href="#">N/A</a></li>*@
                </ul>

                @*<ul class="nav nav-pills ">
                        <li>N/A</li>
                        <li class="dropdown"><span>N/A</span>
                            <ul class="dropdown-menu">
                                <li>N/A</li>
                            </ul>
                        </li>
                    </ul>*@

                @Html.Partial("_LoginPartial")
            </div>
        </div>
    </div>
    <div class="container body-content ">
        @RenderBody()
        <hr />
        @*<footer>
                <p>&copy; @DateTime.Now.Year - 我的 ASP.NET 应用程序</p>
            </footer>*@
    </div>

    @Scripts.Render("~/bundles/jquery")
    
    @Scripts.Render("~/bundles/bootstrap")
    @RenderSection("scripts", required: false)
</body>
</html>
